<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@include file="getusersession.jsp"%>
<%
request.setCharacterEncoding("GB2312");
%>
<jsp:useBean id="delcollection" scope="page" class="dsp.web.Collection"/>
<%
delcollection.setId(Integer.parseInt(request.getParameter("id")));
delcollection.setUsername(String.valueOf(session.getAttribute("username")));
delcollection.delCollection();
if(delcollection.isStatus()){
	response.setHeader("Pragma", "no-cache");
	response.setHeader("Expires", "0");
	response.sendRedirect("admincollection.jsp");
}
else{
	out.println("<script language=javascript> alert('"+ delcollection.getMsg() + "'); location.href='admincollection.jsp';</script>");	
}
%>
